package org.tity.test.network;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class BaseMessage implements Serializable{

	private static final long serialVersionUID = -8107204407442409017L;

	/**
	 * 接收消息的人员清单
	 * */
	private List<String> userIds;

	private Integer agentId;
	

//	private String recallPath; //调用方回调地址
//
//	private String needPersist; //是否需要持久化，默认不持久

	public List<String> getUserIds() {
		return userIds;
	}
	
	public void setUserIds(List<String> userIds) {
		this.userIds = userIds;
	}

	public Integer getAgentId() {
		return agentId;
	}

	public void setAgentId(Integer agentId) {
		this.agentId = agentId;
	}
	
//	public String getRecallPath() {
//		return recallPath;
//	}
//
//	public void setRecallPath(String recallPath) {
//		this.recallPath = recallPath;
//	}
//
//	public String getNeedPersist() {
//		return needPersist;
//	}
//
//	public void setNeedPersist(String needPersist) {
//		this.needPersist = needPersist;
//	}

	public BaseMessage(){}
	
	public BaseMessage(List<String> userIds , Integer agentId){
		this.userIds = new ArrayList<String>();
		this.userIds.addAll(userIds);
		this.agentId = agentId;
	}
	
	public BaseMessage(String userId,Integer agentId){
		this.userIds = new ArrayList<String>();
		userIds.add(userId);
		this.agentId = agentId;
	}
	
	
	
	
}